import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DickYang
 * Date: 2023-06-23
 * Time: 18:02
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.display();
        myArrayList.add(6);
        myArrayList.display();
        myArrayList.add(1,99);
        myArrayList.display();
        System.out.println(myArrayList.contains(99));
        System.out.println(myArrayList.indexOf(99));
        myArrayList.remove(99);
        myArrayList.display();

    }
}
